import request from '@/utils/request'

//微信公众号未登录-1获取授权链接
export function toGetCodeUrl(data)
{
  return request({
    url: '/wechat/official/toGetCodeUrl',
    method: 'post',
    data,
	uniCloud:false
  })
}

//微信公众号未登录-2通过授权链接code获取授权
export function authToLoginByCode(data)
{
  return request({
    url: '/wechat/official/authToLoginByCode',
    method: 'post',
    data,
	uniCloud:false
  })
}

//微信公众号已登录-1获取授权链接
export function toGetCodeUrlWithLogin(data)
{
  return request({
    url: '/wechat/official/toGetCodeUrlWithLogin',
    method: 'post',
    data,
	uniCloud:false
  })
}

//微信公众号已登录-2通过授权链接code获取授权
export function authToLoginByCodeWithLogin(data)
{
  return request({
    url: '/wechat/official/authToLoginByCodeWithLogin',
    method: 'post',
    data,
	uniCloud:false
  })
}

//开发调试通过用户id登录
export function loginByUserId(data)
{
  return request({
    url: '/loginByUserId',
    method: 'post',
    data,
	uniCloud:false
  })
}